package game;

import character.Character;

public abstract class CombatUtil {

    /* Returns true if the attacker is in range to hit the target with its equipped weapon. */
    public static boolean checkAttackRange(Character attacker, Character target) {
	//TODO factor the weapon the char WILL have into the range check somehow...
	if(attacker.getActionQueue().getQueuedLocation().distance(target.getBoardLocation()) > attacker.getInventory().getEquippedWeapon().getRange())
	    return false;
	else
	    return true;
    }
}
